//
//  WithdrawalRecordTableViewCell.m
//  tuanGG
//
//  Created by 微他 on 15/11/6.
//  Copyright (c) 2015年 weita. All rights reserved.
//

#import "WithdrawalRecordTableViewCell.h"

@implementation WithdrawalRecordTableViewCell
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.headImage = [[UIImageView alloc]initWithFrame:CGRectMake(10, 10, 50, 50)];
        [self addSubview:self.headImage];

        self.recordLabel = [[UILabel alloc]initWithFrame:CGRectMake(ScreenWidth-170, CGRectGetHeight(self.frame)/2, ScreenWidth-160, 20)];
        self.recordLabel.textColor = [UIColor colorWithHexString:@"ff5500"];
//        self.recordLabel.backgroundColor = [UIColor blueColor];
        self.recordLabel.textAlignment = NSTextAlignmentRight;
        [self addSubview:self.recordLabel];

        self.nameLabel = [[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMaxX(_headImage.frame)+10, 15, 80, 20)];
        self.nameLabel.font = [UIFont systemFontOfSize:15];
        [self addSubview:self.nameLabel];

        self.timeLabel = [[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMaxX(_headImage.frame)+10, CGRectGetMaxY(_nameLabel.frame), 80, 20)];
        self.timeLabel.font = [UIFont systemFontOfSize:13];
        [self addSubview:self.timeLabel];

    }
    return  self;
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
